#include <windows.h>
#include "CInventoryAssignPacket.h"

CInventoryAssignPacket::CInventoryAssignPacket(unsigned short itemID, unsigned long quantity, unsigned char locationID, unsigned char slotID, unsigned char flag) {
	this->type = 0x1F;
	this->size = 0x08;
	memset(data, 0, sizeof(data));

	memcpy(data+0x04-0x04, &quantity, 4);
	memcpy(data+0x08-0x04, &itemID, 2);
	data[0x0A-0x04] = locationID;
	data[0x0B-0x04] = slotID;
	data[0x0C-0x04] = flag;
}

CInventoryAssignPacket::~CInventoryAssignPacket() {
}
